Corrected formatting and added comments.