renaming controller
Replaced supervisor with nodemon so restart will stop on errors.
Removing global variable, and generall cleanup, refactoring.