Add new complex examples + many error correctiona and improvements