Refactor __init__ and init_app method
Type fix
Stick to the basics.