kdb examples as compiled source

rename uniformly (kdb*)
add warning/errors example code