Fixed bugs with physical memory manager and addressed all current compiler warnings