main program for MAGGOT GUI