Refactored scan method. Also does not allow scanning of items that were not added to the database from purchase mode
Merge pull request #6 from dorreneb/master

Checks for purchase mode scans