chore(made dist and wdist into functions)

Closes #39