Added switch to disable running the leak checker

Fixes #4.