added IDT and improved module manager; fixes #7