added writeenddocument + version bump