major refactor of example code. some pages successfully render now. still needs refinement