Update to comply with PSR-2 and update documentation.