moved transition_train to frame + other minor changes and comments
comments and some code styling
new dist file
boilerplate for new tests
Wrapped selection.datum().call() into a draw function
that is passed to frame
simplified require statement