finished off cc validation and added some comments