changed handling of presence conditions

different file format in .pc file now
also changed the tools that filter and process the .pc file