Moved _upload_f into _upload_object
Added flags to file object
Documented flags and improved Appendix A