some more small changes, added templating library and main page