Added -a flag to include all "media types"
added some error checking, fixed bug with media type case mismatch
Detect media type re-use, no media on first p/n