added option to mk_grid. updated doc.