bugs fixed.

Two future features:
- double quote in title will cause error
- cannot parse attributes lack of comma