added readCPD and readNetwork