Add some API's Action, docsctrings and fixed an encodin set bug and buildAction XML bug.