Added main (just runs tests) and packaged into JAR.