0-based numbering

Closes #9