added getType function

Signed-off-by: bvanr <henkibrij@hotmail.com>