Make funcs export properly and add html export