fix initDict bug, ck cacluation bug, add sample