Fix indentation and add a few comments.