Comments

Added comments to several files to give an overview of what's going on.