Fixed typos and expanded comments