IDT branch merge

This branch fixes #2 by adding an IDT.