Changes STErr monad to not take accumulated errors as input

o STErr is not a case class anymore
o Fixes bug where errors where not properly passed on