added writeToFileManagement function
Merge branch 'mpi-v2'

Conflicts:
	main.c