Made autoscroll work better.
Fixed a few glitches in console output.