Fixed example code
Added a header to index