PullReqeust for #99 and #63 + logDebugFunction instead of system.out.println
Merge pull request #100 from TheSnoozer/master

PullReqeust for #99 and #63