tests updated and refactored for PrizmaNGram extracted, Java docs added