updated the .m file with some commenting and space/tab corrections.