Split entitysystem into intervalsystem for cleanness. renamed some stuff
for clarity.