small tweaks
refactored ModuleApp() constructor by moving Patterns to the specific methods they are used in