Fixed bug which ommitted commas from JSON encoding. Also added work on new routes