Steps towards RPC, fixed a few bugs, improved project structure improved.