Implemented validator; renamed files; additional writer behavior.