Fixed piece stats bug.
Fixed pet bug. Fixed server bug.
Merge pull request #1 from masonh/master

fixes (and rudimentary Makefile)