Update init functions

change to do not work init functions at __init__ function
add parameter xasession to initXing function