Added main function and defined it in pom.xml in order to make generated jar executable