Theory of Electromagnetic Design and ROXIE user's course