Added support for 32-fold manual unrolling of loops; code cleanup/fixes