made small revisions to indices codes -KL
working on bugs -KL
debugging
Merge pull request #13 from klocey/master

revised indices code and other functions -KL