Commented the code.
Corrected a typo.
Fixed a small bug in the advisor pop-up.