little refactoring and moved dotted parsing to opts

Shortly it contains:
- introduce opts
- moved out dotted as option
- jshint fixes