Cleaned .m file for GUI