Make core module more pep8 compatible
Add documentation for Patch decorator