Appease pylint

Add comments, remove trailing whitespaces, add new lines at the end of files.