Changed static int occur to struct containing ofs and int occur. Also changed file extension .K to .Z