Main is doxygened

*minor touch ups required later