added remote class and interface.  moved some functions around.  followed javarmi.pdf tutorial.