Refactor API to remove duplication and add UPC.

Change input placeholder text.
Indent comment.