Updated javadocs and counter of words to start at 1 not at 0