Fixed PHPdoc syntax.
Reconstructed the codebase.