new functions, improved ref/index

added lbpindex to better automate indexing
\phantomsection to references
Included code to color chapters/sections, see codes.tex
Several others changes.