Some small tweaks

Sample program can now tell when the song has finished based on its
playback position.