some smaller fixes
add basic tests, travis and code climate support