Refactor get_memory_layout so that it is accessible during partial init
Merge pull request #34 from tklengyel/refactor_pm

Refactor get_memory_layout so that it is accessible during partial init