fixing err method to handle different types of err objects
fixing paths in resources
fixing error handling
adding in missing ;
fixing variable being named output not data
ensuring all methods return correctly
changing parameters to match model