added arbitrary Jnu integration for photoionization, test functions for
various modules (to clean up main.cpp)