Add create_html function
Add directory location variables, refactor