edited spectrum sensor to accept setup parameters and to process requests