added gm script generating to dev
implemented local cache
fixed format
Merge pull request #47 from bcho/master

Implemented local cache