second commit

Changed the test code blocks back to printing just the input, pg and
result. I had added a line to print the key/ans so I could check where I
was going wrong.