Metformin side-effects?

I started taking metformin 500mg every night with dinner couple of days ago. Apart from usual diarrhea, I also seem to have terrible insomnia. After taking the medicine, I almost feel drained out of energy. Are these normal side-effects? When will these subside?