Made TCHAR support a little bit more generic.
Added more of the Graph interface and Handle swapping.