Auto-scroll added..

Added auto scroll when adding a lot of rows..
Cleaned up code a bit..