The module code needs to be cleaned up and refactored and structured a bit better.

Comments

bmcclure created an issue.