formerly, an officer who inspected and rated articles liable to excise, collected the money payable, and prevented smuggling