Added multiuser capability and command USER
Some refactoring