ELECTRICAL MACHINES Thesis paper for EEE