Extract options out ot JSON file

Fixes #31 
does anything call this now?