Fixed issue with the last partition going over. Had to change some values that were off
Changed lastclust and clustcnt
Added defines for partition specific variables
Added more defines for partition size and offset