What restrictions and laws enacted by the black codes effectively extend the racist doctrines of pre-civil war slavery? What freedoms are notably denied under the code?