P and Bug Fixes

Added the letter P and made some bug fixes.