Add coveralls badge and license file

Additionally, the code examples were updated to use the code formatters.
[ci skip]