update contributing doc and change var names in index
fix var names in index