initialisation can now be written to Main Mod file

added for loops for preinitialisation, postinitialisation and
initialisation so the writer can now add the initialisation lines when
needed