Added tracking for house stats (issue 17). Fixed minor bugs.