Fix histogram, change scanfile syntax
Add scan.py (needs python version 2)