Fix attributes with names as their first component
Add newlines to the end of files