nice formatting of code blocks

code blocks are put into
```scala
scala code goes here
```
this adds nice formatting, and simplify reading