removed logging from loops.
+some javadocs in the ui class