Added documentation to main