clear comented code
fix notes count in my notes
mark units as done when there is no activity, fixes #320