Taking v2 state of PE.js, splitting classes/enums into files.