eliminate unused var and reformat.
add tests and coverage.
add travis setting
add coveralls setting