Refined syntax.
Added WriteDeployList(file) function. Several minor changes.