windows needs binary-mode set for exporting png
re-add fstream to header (oops). update some documentation.