Document format improvements