Document main