Added comments and made every line <=80 chars