Modularized
Fixes edge bug

config object passed to init
removes console logging