Standardise indentation

fix typo
Refactor module to allow unittesting
Add test for TextThem.generateMessage()
rewrite generateRandom()

cleaner code for generateRandom()
Merge pull request #51 from syntonym/more_unittests

Cleaned up code and created unittest for generateRandom