Merge pull request #32 from cpancake/master

Support for exporting optional classes; prune empty directives.