Add grid in debug mode, doc fixes