Added player health/hunger settings, fixed bugs

Also did some code cleanup.