cleaned up syntax errors and accidental recursion
some functions not being added to dirichlet prototype correctly
working in as much as it doesn't trash the training data anymore
alright, roughly working along with example index.html file