Project module scaffolding

- Fixed a bug, then a module generated without area would not compile,
because of faulty name spaces ending with a dot.
- Cleaned up module scripts.