added file writing
promoted to 0.6.0 release version