Updated comments for readability and fixed some grammar/spelling mistakes along the way.