Added Javadoc comments to Main class.