Add rpc
Merge pull request #22 from djs55/rpc

Add rpc