Added the demo package and refined the precision and recall calculation