removed commented code, fixed file functions, made window titles reflect file name, other small changes