Added options for client creation, fixes #82