reduced verbosity
Added check on input file opening
Bugfix int/uint casting