add badges and corresponding logic
Merge pull request #9 from BaBuDe/master

add badges and corresponding logic