@edvin I had a look at improving the layout of the code by inserting enters, but I'm not finishing it.
The reason is that I cannot find a great style for the whole code.
On one method I like to create it a small block and on the next I find a long line looking better.
This means that the changes I want to make, make the code look uglier.
I think I can better fix the code by doing some funcitonality-refactorings.
One of the best ways in my opinion is the difference between if-else and when, where if-else is the replacement of the shorthand if.