Made memstat separate and fixed buddy to compile

NOTE: Buddy currently breaks when called