code from Josh and Feff Project with broken-apart code, and MIT-ish license