Added comments and indentation