added SGAMain as operator. SGAMain operator implements the functionality of SGAMain hardwired (only control structures). (ticket #580)