added includes, added josh's get_numa() & bug fix

- includes needed for kernel calls
- get_numa() modified: fail, free
- format fix