fixed phpdoc
fixed rex_select
use exception instead of errors