Well done. The headache thing could be lack of hydration or just stress on the body. You'll adapt and stop getting them the more long runs you do.