Determining interaction and folding of proteins at the single molecule level with optical tweezers