tweaks, tidy up etc
made tileset library work with multiple topologies