CSV parser and XML formatter

Improvements to CSV parser and started work on XML formatter