Fix typos and minor issues with Result.scala