fixed time standing still

fixed null-pointer issue in retention log
some cleaning up
removed old text-based interface