Slightly improved mob gen.
Fixed bug, and improved mob gen.
Fixed some bugs.