Added utils.py and spectrum checks in analyse()