added a java doc style comment for scanner function