Fixed logic problems in the script
Fixed logic problems in the script

Numbers are now actually accurate to number of words, handling of file
renaming and editing is done properly

graingert/reportificate,graingert/reportificate,chrissorchard/malucrawl,chrissorchard/malucrawl