Merge pull request #21 from COSI236TA/replace_lib

replace local lib to remote ones
Merge pull request #22 from COSI236TA/session_bug

modify session control
really fix the problem