updated sample with newest code
moved datatype declaration to own file because it is needed elsewhere
include new datatypes header