Added ocmain, fixed seg faults.