added TouchScreen support + fixed some warnings