debug

added a timer debug function, for performance testing. Debugging now
logs to a file (log.txt).

Have to check the markdown parser, it takes way to long for those files