add spec.py, spectroscopy demo