Put functions into their own directory.  Split by types for maintainability.
Example code.
Moved functions into a subdirectory and split into groups.
Moved example.  Modified basin hopping trainer to take number of iterations as argument.  Not sure I want to continue with this trainers setup.