Added a main module which should contain the top level functions for users of polya. Cleaned up the tests.