Add getInt and getString functions,
Use some JArray and JObject functions,
Fix some bugs