I think the code's right, the coords range from 0 to 15, which is 16 blocks total.
EDIT: wait, you might be right, because the coords are first adjusted for inclusion by adding 1 to them.
EDIT: wait, you might be right, because the coords are first adjusted for inclusion by adding 1 to them.