Added build file for jar and zip. Fix many small things.