fixed some typos in the man page
Fixed segfault