code cleanup and lastfm package api update