Added travis.yml, removed legacy code, added #ifndef to many constants