updated .m file, README and added 3 index files