>
I'm sure this sentence actually should have been
> **** ****
So it is the man that is having trouble sleeping. And for smiling, **it is highly likely the woman that is smiling** , because considering the and a comma after () in the sentence above, the clauses will be
> ( )
But the sentence looks like from some novel - there's some possibility that the man is smiling.