What are the symptms of 'Epilepsy ' and what is MRI ?

What would be the firt aid in case of 'epilepsy ' ( How to
control it . is there any permement solution to cure it. continious head ache may one of the symptsm of the same.