Rotation of a rod

1. The problem statement, all variables and given/known data
A uniform thin rod with mass M and length L nailed by frictionless pivot can swing freely on the wall as shown in Fig. The pivot locates at the distance L/4 from the bottom and stops inside. The velocity of the bullet before hitting the rod is v. (a) Compute the max. angle that the rod can reach after the shot. (b) If the swinging angle is small, describe the motion of the whole system (rod+bullet) in detail.

3. The attempt at a solution
I used the conservation of energy and concept of mass center.
The result of (a) is [itex]cos\theta = \frac{2mv^2-(M+2m)gL}{L(1+\frac{m}M)}[/itex].
I don't really understand how to get (b).

Oh...right! I forgot the reason why the bullet stuck in the rod!!
Now that means I have to calculate the moments of the inertia...
I know it would be a SHM but how do I describe "in detail"?
Thanks a lot!