Big refactoring of pe.js. Still need to clean the ASCII stuff.