use best practice file endings

leave out closing php `?>` tags: http://stackoverflow.com/a/4499749
text files should end with a single newline: http://stackoverflow.com/a/729795