added docstring
bring member varialbes into local scope
moved facet blocks to their own category