What is the version of the following sentence with correct punctuation?

And lastly their functions should include the study of theory ie the theory of organisation of the work they intend to devote themselves to and practical work under the guidance of other comrades or of teachers in the higher institutes for the organisation of labour
And lastly, their functions should include the study of theory, i.e., the theory of organisation of the work they intend to devote themselves to, and practical work under the guidance of other comrades or of teachers in the higher institutes for the organisation of labour.