Removed the (commented-out) branch-free versions of the kernel functions. Also improved documentation.