Fix trailing line, add autoload cookies for interactive functions