improved doc. added rpc.factory