Pan American Advanced Study Institute Lectures: Nanodevices and Maxwell’s Demon