Commented PD code

Just added a few comments, as well as read through the new
tape-following section of the code.