Adding to main.
Added comments to some files.