ENH: registry will now automatically construct read and write methods

Ready for review