used freopen_s for console outout
Corrected DrawTexture aspect argument
Cleanup