Update Result.scala

Cleanup: removed ErrorDetails class; errors are just strings; added a new filter method; removed some dead code too.