added the demo stuff
Local/global time is now a long
added TODO