Molecular machines and devices