added lots of stuff mainly from xplodwild (thx) and some sort of running system