Tweaked the get JSON error handling and removed unnecessary files