Main part compleled

Now support multiple sessions.
A table of available sessions will show up when program start.