fixed segfault problem
updated readme