Minor updates.

Changes in handling header rows.
Updated Transformalize library.
Split up some messy code into smaller parts.