2014-06-23: 1. Changed main to read metadata in program files 2. Added new defs location for standard definitions