Changed the data structure used for storing playlists.
fixed syntax error