Better error handling in parallel threads
Added solar spectrum for tests