Added important comments and formatted