improved design and added some comments
fancyfied the inputmanager and the use of the director