tidy up layout of package. Make sure it does not need to be run from current dir. Add test if php curl is installed.