added help and bug fixes