Fixed bug in horizontal jumps. Added some extra comments.