how herbs grinding machines work