Grid constructor added and ->putMain() works for integer arguments