implementing protocol buffers interface for more commands; fixing wallet format