the end is inclusive
Added documentation