more testing and bugfixing
Added util method for uploading files, tested