Tidied up code. Added tidy config document. Added tidy support for .gen.sh