Switched to better object pattern.
Changed the initial demo code to have neat comments.
Cosmetic changes
Switched mips.confirm/alert to mips.mipsAlert/confirm, to avoid loop bug.