Optimised document analysis code to run on multiple threads
Changes to utilise background worker to update progress bar
Fixed regexs for parsing document template field codes
Removed filtering from sql query on specific ID for parsing document template field codes