Added code for PC algorithm.
Updated classes that needed changes after adding PC algorithm code.
Minor code changes
added code comments