upload module basically done, still needs some tweaks. Also added a makefile