add comments describing RPC methods and basic server/client struture