Refactored CES specific functions into their own module.
Removed CES specific functions to new module and added imports.
Fixed small typo.
Started a test suite for the ces module.
Fixed small typo.
Slight rearrangement of args in docstring.
from __future__ import division!