- implemented lamp and dark spectrum
- moved saving to main
- many small fixes