CleanUp an Recode
New print, insert and main function