Rewritten scripts with library include, tested c_atti for file output