updated snippets to include TDK

Also usable version of wg_TDK.php