Added badges to README.md.
Small coding adjustments to meet Scrutinizer standards.