Fixed issue: Fixed criteria used to load

+ Disabled not needed exception
+ Fixed criteria validation
+ Improved Document::cast
+ Fixed PHPdoc