Format DXEngine.h and some small changes