Updated DMEM and UNIT to latest versions.
Changed source code formatting style to K&R.