Fix test compilation
Move default addr to main pkg
Persist state to toml file
Write state file to .tmp first
Ignore state file