updated so it is executable as a jar