Fix various static lint issues
The change includes different kind of style fixes like:
- removal of unused code
- standardisation of package aliases
- redundant condition checks
- structs instantiation
None of those change any logic.
The code operates as before.
Edited by Zeger-Jan van de Weg