Added more comments and reformat the script