grid model branch pull request

added implementation for grid model and numpadview and unit tests