changed topology .file
updated template.
added sleep to prevent gui to not close completely.
improved debug output.
removed debug output.