Specify that the index is 0-based.
Update code style.
Merge branch 'master' of https://github.com/jasperblues/Typhoon