Bug fixes of kdb & swdl

side note: for the first time downloaded the whole blockchain with kaiju