example for param in out working - not passing things out yet
adding platform includes for c++11
making functions use common body generator