Added javadoc comments to Main class

Javadoc comments for:
- Main class.
- Main class attributes.
- Main class methods.