code updated, and most things translated.

Signed-off-by: jsinclair <james@mytcg.net>