Refactors how solutions file is written

Already writing bias analysis solution