updated metadata lib
added metadata to example files
detecting end of track