fix CurTime function; some improvements in statusline