Adds type checking and testing for polycals
Code cleanup
Code cleanup and commenting for polycals
Code cleanup for spike
Code cleanup of gradient
Merge pull request #165 from lukecampbell/cals

Polycals testing and Code Cleanup