proposed solution to issue #31

It seems the start and end variables need to be set to 0-based. There might be a better place to correct this mis-alignment, but this change has the service working like a charm for me!