Minor code cleanup

Changes to code to run on linux.
Added links to references in ipython nb.