CFY-1000 some code cleanup and documentation changes. Also fixed a bug with file copying to the management server