Added tests for the core APIs, refactored some
-rw-r--r-- Build.PL
drwxr-xr-x lib
drwxr-xr-x t