Is the last reference the course? Do you have the studentid somewhere?
Should be: add student "studentid" "courseidnumber"
Do you have the course id number filled in the course settings?
For the upload users method, the csv file format is listed in the docs. Just make sure you have a course1 column and add the course shortname there. Then in the wizard, select to update existing users...