some typo fixed. Saving offset in the file + resuming capability.
Stable version