update createConstraint function, fix course dropdown
add print statements for debugging, remove extra comments