Fixed a memory leak
Implemented Shrmem class that will make utilizing shm* functions much easier