Improve code style and type checking

Splitting them up to make review/adjustments easier.

Merge request reports

Loading