page content type will now be application/json if the  flag is set
changed how classes are instantiated, added more error handling, updated README accordingly, added a list of approved API endpoints
added more error handling for invalid endpoints