Bugfix when no beforeCompilation or afterCompilated is passed
Throw errors when options are not good #3