Misc cleanup

- fill in TODO in parser
- make formatting style configurable
- enable debug log
- fix filename in xml file (filenames can be case-sensitive, depending on the systems)