Added function output_spectrum() to BDdb.py, which prints a spectrum data and header to an ascii file.