fixes use of camel case
added newline at end of file
moves everything related to generating the IPython notebook, to a different file