Add version flag to k, klr and kpm

parent #273