added some function comments
Changed to standard i/j/k. Fixes #20
Cleaned up howManyMakeArray