Added logoff and whoami commands
Added javadoc documentation of each function + some comments