fixed script and added badge to readme