added before and after methods
added travis and examples