added autoscrolling, closes #3