fixed course API
various api fixes
check assignment duplicates
various fixes