replaced edits by insert_snippet commands
fixed package decl