Use 0-indexing for proteins/calculations.

I don't have confirmation that these changes will make the calculations
accurate, since I don't see the updated tests on Piazza just yet; however,
these changes are needed to make the proteins section work. Please review
and let me know if there is anything unexpected in this commit.