added some comments about how one would do clipping against boundaries.