Refactor extract gem options

now with this I hope the option parsing problems end, and if there is any problem at least is localized and can be fixed right away

closes #13