introduce opts, moved out dotted as option, jshint fixes
Merge pull request #3 from zxqfox/feature/introduce-dotted-option

little refactoring and moved dotted parsing to opts