got rid of most warning messages
removed debugging message
renamed PatternTripple to PatternTriple (typo in Triple)