Fix stuck gradient more.
Add documentation and rearrange header.