correct some bugs + add pause/resume features + improve readme