cleanup and added completion for user command
added jsdoc for user completion
first implementation of user functionality