Fixed inconsistency with array offsets
Updated public code comments
Minor DRY change
Updated implementation code comments