various improvements / fixes

fixes for a lot of little problems, removed erroneous unit tests, modernized.  auto-refreshing.