Added --debug option and improved logging

Corrected whitespace stripping regex to avoid warning
Removed hard-coded test path
Merge pull request #141 from keithj/devel

Removed hard-coded test path
Merge remote branch 'wtsi-npg/master'