Correction: reading unsigned int's, not signed int's.
Correction: returning 1 in case of file-reading-error (not 0).
Started using bool.

And some code improvements regarding locality and const.