Finished coding the cleaning process of Definition control (Start, End and Delete).
Still left to clean the comments and end commands.