Theory Of The Nuclear Shell Model