deleted disused variables and changed to use grid.commit.
refactored commitExcited.