added some basic docs
renaming N to K