Chemical complexity in starless and pre-stellar cores