Adapted to new format for links files. Read config from file with ConfigParser. Added logging