Changed to generic typing
Changed helper functions
Awesome dollar swift commmit
Finished integrating DollarSwift. Changed API around to be easier to test. Hidden pairs aren't implemented in this commit