Correcting and improving code chunks