updates to integer module -- fixing mem leaks