- using tinyxml2 parse method for load memory
- cleaned up main a bit