Refactoring
Put extraction functions in separate module
Added tests
Added .travis.yml