Added comments to code and added alert to prevent unanswered question progression