[world gen] cleanup of code and comments