Added GFXEngine class.
Fixed some class mess.