Created main.java

The bulk of the application.