document updates
new scan.kat function