Clarified documentation.
Added tests for the arguments of retrieve().