don't need subs anymore
added type information
MATLAB/Octave catch clause issue
Improved error msg