Fixed Course Controller

Made it cleaner and it should work now.
Made cdv method to smaller methods to make it easier to read
Merge branch 'cleancontroller'
Merge branch 'master' of https://github.com/191-Group-4/partner