Refactor, added debug mode and cycling over letters.