Cleaned  up some code and Added Autoscrolling feature.