Extract options out ot JSON file

Fixes #31 
still needs to be updated