Better formatting of scala case classes

Edit done directly on Github but it should work.