You can add functions to the programming but not to the library. Using My Block you can create your own Block that function can be used in upload mode as well.