added gui. press "start" to start optimizer.