Added additional documentation
Fixed improper reading if spectral index is int