Fixed MaxId and template xml string
Merge branch 'HEAD' of https://github.com/mhowansky/scow.git