Minor collision bug fix, added code comments.