Fix errors in deleting comments and swits, Added character count in writing swits