Fix get_section_dict. Use an OrderedDict
Improvements in classifier app.

Use an alternative approach to the pattern recognition problem using
less replacement regexps by using a nearest patterns strategy