K log impl

ENSURE THAT #6 HAS BEEN REVIEWED AND MERGED PRIOR TO MERGING THIS.