code reference to input should be indata
Adding subcommand to rpc
Merge pull request #3 from afrank/master

fixing syntax error and adding subcommand to command()