Adding module examples from the reference manual. Fixing the build script.
Minor developments to get module workings.
Ignoring files when we should.