added: some function documenation and possilby fixed the remote function execution funcion