Moved user code in MainActivity to UserController

Some functions commented out until the interface works as intended.