delete debugging messages
fix issue where generate structures was always set to true