Adding comments and removing more divide-by-zero errors.