The invention provides a lithographic method referred to as “dip pen” nanolithography (DPN). DPN utilizes a scanning probe microscope (SPM) tip (e.g., an atomic force microscope (AFM) tip) as a “pen,” a solid-state substrate (e.g., gold) as “paper,” and molecules with a chemical affinity for the solid-state substratte as “ink.” Capillary transport of molecules from the SPM tip to thee solid substrate is used in DPN to directly write patterns consisting of a relatively small collection of molecules in submicrometer dimensions, making DPN useful in the facrication of a variety of microscale and nanoscale devices. The invention also provices substrates patterened by DPN, including submirocmeter combinatorial arrays, and kits, devices and software for performing DPN. The invention further provides a method of performing AFM imaging in air. The method comprises coating an AFM tip with a hydrophobic compound, the hydrophobic compoind being selected so that AFM imaging perfromed using the coated AFM tipn is improved compared to AFM imaging preformed using an uncoated AFM tip. Finally, the invention provides AFM tips coated with the hydrophobic compounds.