Adding parsing of BOM.

Thought you might like to add this little bit of improvement.
Cheers,
Silvia.