Refactored notes to use .start and .end rather than .start and .length