Updated comments and changed GridManager to a singleton.