legend from mexico says that he came across the sea in a boat without paddles and that he taught the early peoples writing , woodwork , stonemasonry , law , medicine and astronomy , among many other things .