minor code cleanup, more vars added to gui; need to separate out gif-builder to be event-driven