updated upload, more functions tested, examples