implemented rpc call
added Makefile