public boolean export(String filename){
		try {
			StringBuilder sb = new StringBuilder();
			sb.append(frozen).append('\n');
			int i = layers.size();
			for (Node[] layer: layers){
				//Account for bias weights
				int layer_size = layer.length;
				if (--i != 0) layer_size--;
				sb.append(layer_size).append('\t');
			}
			sb.append('\n');
			for (Node[] layer: layers){
				for (Node n: layer){
					for (Double weight: n.weights)
						sb.append(weight).append('\t');
					sb.append('\n');
				}
			}
			try (FileWriter x = new FileWriter(new File(filename))) {
				x.write(sb.toString());
			}
			return true;
		} catch (IOException ex) {
			System.out.println(ex.getMessage());
			return false;
		}
	}