added close statements for ostr objects

The ostr object to write to the leaf and plant output files (G02 and G01) were redeclared before every write request. I added close statements for the ostr object in the same block of code, after writing. this is also a test to see how to merge changes from my WorkingCopy branch back into the main branch.