Added license
Small refactoring
add travis support