corrected output on addons file creation; corrected close of fh on addons file