Download button now works, updated and organized py files