implemented std::fmt::Show trait for Document, better for debugging purpose, started implementation for document html view