add scrutinizer badges
minor code improvements