Merge pull request #587 from RobertBColton/master

Changed Windows Folder
fix mac support and rewrite write_object_data.cpp