tidied Playfair cipher

General bug fixing, and reorganization.