Fix top level parse simple API for parent features. Generalize to handle directives and add test case. Thanks to @khughitt. Fixes #80