minor changes in controller class
added minor changes to exceptions, created simple prototypes