Restructured code to be more modular, exposed a direct download link (currently requires proper authentication)