Cleaning of code by fixing warnings

Done some code cleaning .

Pull Request related to https://github.com/twitter/ambrose/issues/161