Removed some debug info and added some comments for future dev.
Added address space null pointer initialization and checking that kernel has been given enough memory to meet the widest access of the corresponding address space.
Fixed null pointer initialization back to allocate the constant and local ptrs