add stats rpc command
Merge pull request #7 from ranjib/stats

add stats rpc command