Correct logic. Add flac, ogg format.
Fix set_len method.
Test