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
removed unnessecary declarations
fixed bug where n were shadowed
added default to switch-statement
Merge pull request #1 from langest/master

Improved mpd support