Added Controller generator function
Creates directories where needed