add snipp + add autocomplete to publishns + fix cleanCode function