making destructor public
added current state getter
fixed clear_from_texture_map, now freeing memory
debug logging; implementing current state getter
fixed memory pointer bug; freeing memory properly