Added an init function and create grid function
Merge pull request #3 from susielu/master

Added an init function and create grid function