Updated with main method
Modified pom.xml to support running the io through maven.