Improved valid key checking
Added Travis CI