Code clean up and add coveralls.io support.