Add initialisation of shared memory
Merge pull request #116 from neithernut/add-shm-initialisation

Add initialisation of shared memory