added input/updating User's model, fix pep8, minor improvements