added download and example. fixes #1, #2