Made changes to fix bugs i.e. exceptions or null pointers
changed what the illegalStateException should print out
Added some comments and made changes to correct style,
Hopefully fixed bugs with MultiPurposeList