Reformat code
Document code