Some changes in final3, add nn option and clean up...
Final version, add simple one-output mode...