changing the return value of a function from Byte to Integer
preventing a potential NPE and returning if the file doesn't exist
simplifying a return statement
Merge pull request #4 from Nunnery/master

A few simple changes