refactored added petition cpp
added travis file