Added javadoc comments to Main class

Javadoc comments for:
- Main class.
- Main class attributes.
- Main class methods.
BTW I've a problem with this line. It shows in its correct position in Eclipse and in my Github app (windows), but when I check it here it shows moved to the right.