CreateController function

Creation and adding of a controller in a supervisor