Merge pull request #63 from irvs/issue62

added auto-selecting of item for map
modify generate script programs
Merge pull request #64 from irvs/issue42

modify generate script programs