Do gratitude and mindfulness before bed write about the good things in your life. And as for those thoughts just let them come and go but if they are really annoying you try to meditate or play a game to distract yourself do not worry I have been through this too and now I am fine it will get better!