Added parts of GEP to the foundation.
Restructured stuff to be more consistent.