Finished PEL

Finished the implementation, doctests and cookbook recipes.