Write jar files instead of xml files

TODO: time signature on jar files.
Format code