added timestamp to logging, added logging to sections