Added logic to automatically trim the empty lines at the end of the file
Updated the plugins