Added some to the free function, started writing isInTree function to
find the address