Updated phpDocumentor blocks.
Moved sidebar registration to a function.