finished code abstraction, added html code displays to index