added first draft of download reference implementation