fixed showstopping bug in peaklist creation and added to_spectrum for peaklists