Lots of code for func assessment 2

Lots of code to do stuff for 2nd functionality assessment. Final module
is spintestV3, others are included for reference/completeness.