Cleaned up code

Added versions, documentation and removed GUI refrences from the
Controller class