Nanodevices and Maxwell's Demon