Modified course.py. Made the code easier to understand and fixed a few comments.