Removed dead code; fixed phpdoc

There is a lot of undeclared properties, I've declared them and added few missing phpdocs. I've also removed dead code.
Doesn't matter, it's the same. If you throw the exception with absolute namespace, it doesn't have to be imported.