added retrieve options and made some comments