Moved register stuff around. New compile tentatively working on simple examples