Added comparator to GridViewable and made it a Generic interface.
A few bug fixes.