The Impact of Cortical State On Neural Coding and Behavior