Pep8 and static error fixes
Updated flattener documentation
Merge branch 'flattener-documentation' into develop