added directiveRegistry, started work on bindings, fixes in compiler