Update main.java

Added slight documentation.