Camera Rotation newbie question

Hello everyone, I am pretty new to Unity so I have been following a set of Youtube tutorials to help me get going. Now, in the tutorial he has us make the following code:

private void Update() {
if (cameraDesiredLookOut != null) { //check if camera exists
cameraTransform.rotation = Quaternion.Slerp(cameraTransform.rotation, cameraDesiredLookOut.rotation, (3 * Time.deltaTime));
}
}

private void loadLevel(string sceneName) {
	SceneManager.LoadScene (sceneName);
}

public void LookAtMenu(Transform menuTransform) {
	cameraDesiredLookOut = menuTransform;	
}

Now, prior to doing this rotation code, he showed basic code that just looked at the object itself without any rotation. With this code it fails to rotate and seems to lock down my game. I have a MainMenu tag which has my C# script associated with (one I am posting now), along with also a camera component associated with it as Unity was complaining (after I did an API update) that it was missing. Below is my start code. I would greatly appreciate if someone could look into this, and let me know why this is not working as I am a total novice to unity.

public class MainMenu : MonoBehaviour
{
public GameObject levelButtonPrefab;

public GameObject levelButtonContainer;

private Transform cameraTransform;		// both of these transforms are for a more elegant camera movement. 
private Transform cameraDesiredLookOut; //

private void Start() {

	cameraTransform = Camera.main.transform; //instinate object

	Sprite[] thumbnails = Resources.LoadAll<Sprite> ("Levels");

	foreach (Sprite thumbnail in thumbnails) {
		GameObject container = Instantiate (levelButtonPrefab) as GameObject;
		container.GetComponent<Image> ().sprite = thumbnail;
		container.transform.SetParent (levelButtonContainer.transform, false); //object changes world position. true assigns it to its default position. 
		//in other words, assume position of parent. 
	
		string sceneName = thumbnail.name; //this here it is more direct and specific. tutorial said you cannot do thumbnail.name 
		//for the loadlevel parameter, seems to still work. Obey tutorial for now. 
	
		container.GetComponent<Button> ().onClick.AddListener (() => loadLevel(sceneName)); //this appears to be like an anonymous function. 
		//it calls another one. In this case it calls our loadLevel function.
	}
}

Solved it. I rewrote that part and removed the camera component form my mainMenu tag and it works. Oh well, the joys of being a novice.