documented some code for the user module