Fixed script to link files properly, added config variables for location