Massive Refactoring.

Now with Classes!
factors for grid now change cursor.