Post optimization and commenting of code