Tgp

First attempt at removing c/c++ code mixing.
auto type here as well?