fix return variables

I have fixed small two problem.
* The method "createSession" returned always 1 (which is a number of inserted column)
* Some method returned not integer but void.