Change the use of deparecated contrib.math library with the new math.numeric-tower. Add comments to few functions. And add new function 'pseudoprime?'.