more error checking, updated help file