added biom-format functionality, fix some metadata issues