Basically complete register file part.

Further changes will be made.