Added interfaces, updated PHPDocs.