Added javadoc comments to Main class

Javadoc comments for:
- Main class.
- Main class attributes.
- Main class methods.
Change the tabs for spaces