James Chalmers, 1841-1901