Added --test-mode argument + converted some comments to log messages. Fixes #9