support read similarity from file
add LICENSE
fix style