Updated to pull playing status from API rather than logfile.
Corrected inconsistant line endings.
Updated comments.