Remove outdated code and integrate with Travis-CI