added more helper functions, cleaned up matrix sub-selection logic / code, fixed bug in matrix sub-selection
fix typos
Merge pull request #17 from teharrison/master

 	added more helper functions, cleaned up matrix sub-selection logic / code, fixed bug in matrix sub-selection