Clean up code.
Add parsing script for the hierarchical data.