Added basic API for class CPE
documented CPE API
fixed pep8
Merge branch 'cpe'