+ better thread pausing + misc stuff
still a lot of stuff to fix before everything works as it should. compilation works, linking produces errors. most code cleanups done.