add loopstatus

also fixes wrong length in metadata and wrong playpause behavior