added ui elements, export, save and load functions

still has issues with collisions if there are large numbers of
collisions, real problem not diagnosed