renamed allowedChars to alphabet
added a small demo program