Writing preference file completed

Still need to escape the song path