Re-structured the project to build a JAR file from standard project structure, so that build script is simplified.