change module dependencies, add leak.js, add class for stats monitoring
and methods for write stats to log, console and export obj to json