Added a few comments and fixed a typo