Cleaned up chunk generation code to be faster and pretty. Also should auctally do something now.