Write changed, untested
Nice read and write, switch statement in seek now, still not tested read and write