Fix OrscLinks and OrscLinkPatterns so they compile together
Add functions to parse region and EM candiates
Write link tables to output file