Fixed out of bounds errors for classes.
Added lots of text.