add init_middleman function

Changes to be committed:

	modified:   lib/software.lib