fixed some stuff with the interface. Started adding a bunch of the sorti...

...ng front end. Still need to add the display during sorting.