A few improvements

Removed dead code in some script methods, added checks for the return value of fseek()/fread() in uoconvert.