The p0304 code is cylinder 4 misfire. Since you said you replaced the coils, wires and plugs it might be a dirty or faulty fuel injector on cylinder 4.
The p0102 is the mafs, since you said you cleaned it and it didnt help you probably need to replace it.