added error function to all scripts, comments to scroll.py