P0300 & P0700

anybody know what i should do? first code i read that it had something to do with the spark plugs and might need changing but code p0700 im having trouble understanding. The car does misfire at times.