Final merge (working) for parser integration (+ policy scoring  included
but not called)