Refactored command help to string.
Refactored auth handler in main js.