Fixed indent issues and added comments.