Set the api to json encode. Remove debugging and error notices in class mpd (stupid old code)