init explained state, fix severe type bug, rename some keys