Code used for my undergraduate thesis in Physics, in collaboration with the Salk Institute CNL. Some utility functions are not included.