Fixed issue: Fixed criteria used to load

+ Disabled not needed eception
+ Improved Document::cast
+ Fixed PHPdoc