added a travis-ci badge
added warning and error methods