Bugfixes, added Sessions and added Testsuite