Adding typedef parsing and exporting. Fixes #1