Added Pollard and testing
Fixed comments and refactored a bit