Better Portability, Fixes, More documentation, attribution for phi(x)