Added realPlaylists function and some TODOs, and improved the API