Changed variable naming scheme for linking files

Added documentation