Mostly added comments to the BIB and session modules.
Also removed some redundant code, enforced code conventions and applied some small refactors.
I also removed the code that adds compatibility with kernel 2.6.38, because it no longer makes much sense to support only that one random 2.x kernel.