This pdf contains explanation , theory and lecture notes.
Difference between Motor and Engine.