Fixed the bug which might cause additional last layer issue
Fixed the potential issue which might cause repeated planting event in the generated XFile
Minor update
Minor update
Merge pull request #91 from MengZhang/develop

Develop pull request from Meng