Began work on gui and fixed concurrency issues involved with updating the stretch factor.