Remove fitness output and fix bugs with writing output