Added option to inject dependecies in controllers, added new hooks options and fixed some whitespace.