moved some logic to main.js
moved config options to main.js
Merge branch 'feature/feature/main.js' into develop
updated README