the invention concerns nanoporous carbon membranes which have been synthesized by pyrolysis of selected polymers on porous substrates to produce thin mixed matrix carbon film with pores for separation of small molecules .