Increased efficiency & readability

The data retrieval method for the .json files was swapped from
file_get_contents to cURL due to increased speed and customizability.
Indentation was added to make the code more readable, and all functions
were shifted within the class so that it is a nice all in one package.