fixed bug with repeating consonants and improved Javadoc comments