Fixed bugs and added a new module

The exampleModule was added. It is rudimentary, but it works.