Update wallet to support name registration

cleaned up code formating, adding documentation, etc