add writer, minor edits