Fixes numerous bugs and configures plugins