Refactor API.
Change input placeholder text.
Correct comments.
Merge pull request #1 from jDeppen/api

Refactor API to remove duplication and add UPC.