Merged the refactored MICE code.
Style fixes to debi.js
more style fixes.
Refactored MICE into two parts.