Some cleanup, added util.js for hex functions