added method to select first document in a library, upload a doc file, finished library versioning scenario