Input and reinitialization base.
Fixups in initialization.
Final reinitialization code.

Base value of N changed 20->1000
Init is now same as visible init data.