Folding, aggregation and molecular recognition in peptides.