refextract: improvements
- Improved some comments. Created checks against spaces at the end of raw reference lines which are being processed.
- Will now add a space at the end of raw references, if there is a need to concatenate two reference lines as a result of bad pdf2txt parsing. The space will only be added if a space does not already exist for the base raw reference.