shellcheck valid now
fixed empty-key bug
added Debug output for key-parsing