Early dev of new 'defaults' handling. *Not stable*
Fixed an issue where the location could not be found if the URL did not end with a (forward/back)slash
Removed uneccessary statment
Added handling for if the configuartion file does not exist
Added statement to make a new Reference from user input if no valid reference could be found
Made use of constants to make the default source/doc easily changeable
Added return statement for safety