Code clean up, added frame_codes.csv