header & footer in code example & GravityCompact

- Basic example is better then no example in my opinion.
- Use GravityCompact instead of Gravity (4.0+).