Some Bug Fixes

Added spectrum type, decreased errors, increased quality of spectrum