refactored to clean up naming convention and overall structure, streamlined file upload process