Small fixes discovered by scrutinizer
Add scrutinizer badge