Corrected bug with wrong date being displayed. Fixed error when there are more lines in qstat than lines of window, so it does not crash anymore.