Added comments and indentations