Added test file with spaces in main file name
Added test for completion
Updated completion test
Ensure full path names for label input files
Add local bib files to completion test
Some refactoring and minor changes to bib completion