fix some missing string substitutions. remove commented-out code
abstract maininitpy changes into a method
abstract changes to the .ini files into a function
abstract packages copy and nginx help text to functions