fixed some bugs in the original t2w as well as started to add a gui