Fixed indentation and moved some comments.