Added --debug, captilalize the namespace, improve the progress bar on short documents.