fixed memleak: not freeing object keys
memory stats: print_mem_use()
few things
minor fix