made dist for initial release and added tests