Added second commandline parameter for max-words