Ported memleak module, added docs