Commented the code and added new functions.

Added content switch effect, added new configuration options, added
icons and sprites, restructured code, added comments.