Support JSON comments
Fix object and region parsing
Refactor method names for loading resources