Chromatin and epigenetics: from mechanism to function