Merge pull request #19 from wagnert/master

Refactoring getSession() method
Bugfix invalid getSession() method
Merge branch 'techdivision'