Lots of documentation, small fixes.

Changed Component into BaseComponent.
Fixed a bug with sprite offset.