corrected some mistakes in regfile