Fixed tune priority not resetting

Also added new lines to end of files