- added missing type-hints - avoided local variables - added some documentation - changed double-quotes to single