Added missingTrack++ at the end of the size check.
Added length check for tags.
Improved logging output.