refactored some, added "Download" link to header