Added logic, updated README and added an example.
fix merge conflict and removed tracking badge