Reformat code to be PSR-2 compatible and added client script validation for cpf.