Cleanup dip and mad project code
use _size suffix for memory size and _len suffix for string len variables/parameters
add const qualifier when appropriate