Added upload script and various improvements.