Handle more errors
Fixed a bug when the STTC returns an API error
Got rid of fmt
Added additional test coverage