P0107 is your MAP/BARO Circuit Low Input error. Check the connections at the MAS, replace it if necessary.
P0310 is a misfire in cylinder 10, which is impossible since you only have four cylinders. Maybe you got the number backwards and triggered P0301, which is a misfire in the #1 cylinder?