moved defer to after errorcheck to avoid panic while closing a failed connection
changed log.Fatal to log.Println so the program will run with informative output instead of exiting
added support for files with different types of meta information
removed unnessecary declarations
added so it checks if mpd is paused or stopped