cleaned up facs
added facs export query
removed hard coded definition models
fixed untyped function return value
Merge pull request #357 from 28msec/fac-cleanup-and-export

Fac cleanup and export