Made CreateCell and fixed some bugs