changed interface of DirectX.cpp. Some comments. Debug messages