set secret/address + import/export config

amount is unsigned! can never be below 0. a decent compiler should pick this up; i know gcc does.