Changed the code comments to be more clear a fixed a typo (will be more careful next time, didn't spot the problem until already committed)