fix syntax of shell if
fix warning (unused variable)
remove markdown dependency
todo for tools
compatibility behaviour: empty keyname for kdbGet
fix bug: return KEY_NS_EMPTY correctly

+testcase