Add documentation to main.