added man page for main function