I think the understanding about breaking the glass with the hammer was that if you destoryed the top of it the rest would start to crumble and fall apart, But that's just a guess.
She said that she wanted sunset to return to her on her own accord, hoping that when she did she'd be a better pony to everyone else. She apperently didn't expect her to come back through evil.