add info on how program works and sample output