Minor renaming. Moved Inteval to its own file.
Moved EndPoint to its own file.