Working uploading
Cleaned up the code, basic functionality working
Add some better documentation