Separated functionality
Fixed bug where has_insert return wrong value
Started adding tree genome