Made the bootstrap easier to understand 

cleaned the code and also changed the way the bootstrap gets called in index.