Some minor refactoring
Fixes #1 File now uses long instead of inte to seek position.