Tweaked for more dynamic parsing
 + automatic scanning for sections
 - removed section selection
 + removed trailing whitespace in output lines
 * planning to port this functionality to C