Stop indexing the methods array

Closes #10.