added function skeletons for the RPC calls and cmdline parsing in main()