some small improvements in the timetabel algorithm and in global init of global variables