minor edits
added download functionality