use constants for defaults
setup tests
add travis-ci