Removed json_decode, if the dev specifies json it should be returned as json.
Added default fall back to constructor. Corrected var name in constructor. Added format string to the built URLs.