fix horarios template
clean up
add course type to select
change control structures to alternative syntax for clarity