Fixing comments, typos, warnings.