ENH: registry will now automatically construct read and write methods

Ready for review
Good idea. I will do that soon.