Change open mode and seek() behaviour

See #10