added some documentation
added grid margin