fix bugs
add coveralls
add simplecov
upgrade code