minor refactoring, improved documentation of core classes; squashed a few minor bugs related to docgridview