appropriate folder naming
fixed inconsistencies in allocation subroutines
add tests and fix issues w/ pd.(c|h)