fixed import in CastaliaResultParser
fixed writing result files