Cleanup general

Mostly examples and formatting etc
Add declaration order section