Fixes #24 Refactored how parents modules are found
Merge branch 'feature/24' into develop
Merge branch 'develop' into feature/17
Refs #17 Generates sections

Not totally finished due to a problem with unit testing.