clean up line endings, structure, and add boilerplate