Add getSpec function to get specification details
Add coursework spec id to coursework