Added append/truncate, GetSize() and tests.