A composition comprising: a liquid medium; and a compound comprising one or more chromophoric groups and one or more hydrazine or hydrazide groups;wherein the liquid medium comprises water and an organic solvent, an organic solvent free from water, or a low melting point solid. The devices can be used to repair hard or soft tissue, such as bone or vertebral discs. In accordance with another aspect, a bit string is received from a calling program.