Added javadoc comments to Main class

Javadoc comments for:
- Main class.
- Main class attributes.
- Main class methods.
No need for an empty line here.