more comments and cleanup for JSONParser