Changing default requests to retrieve JSON instead of XML

Related to #2

Also fixed some indentation