Added some function PhpDoc headers, fix for setting the user id during upload