Errors solved for RMI capable code