tidying up comments and making sure each file ends with an empty line