Most of the module

Most of the module has been written. Now just need to clean up some code
and make user input friendler.