Replaced a few getters with protected fields, fixed some spelling mistakes, improved efficiency of getComponentClassIndex in ComponentManager, added some more comments.
Removed an unnecessary package.