Added various stuff to make the whole thing work.

A bunch of stuff is added, like delta time for each frame and other.