NEW: Changing from fwrite to using upload_from_string for dict.txt
BUG: Initialise $data variable for weighted search
BUG: corrected dict.txt name
NEW: Create dict.txt in source directory as it is copied over
NEW: Added output message when creating dict.txt