Is there a good iPhone sleeping activity app?

Recently I started to have bad dreams and I'm looking for an app/device that: can measure brain activity / store data in an app / can be bought for a reasonable price.
I searched for it, but haven't found anything which meets my criteria.
I'd be happy if it can be used with iPhone.
