Implement 'add module' functionality in CLI.
Fix wrong module name limitation.
Add missing template file.