Engineering modular self-assembling biomaterials for multifunctionality