fix referrers meta detail binding
better error output on wrong parameters
fix deployment to pypi
add a tests file;