updated grid padding, margin values, added more global variables